package com.yanqu.road.entity.monopolymarket.office;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Description 榷署位置信息
 * @Author cwq
 * @Data 2021/8/19 11:44
 */
@FieldTypeAnnotation(tableName = "t_c_monopolymarket_office_seat")
public class MonopolyMarketOfficeSeatData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true,desc = "分组id")
    private long groupId;
    @FieldTypeAnnotation(desc = "位置索引")
    private int posIndex;
    @FieldTypeAnnotation(desc = "入座玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "入座时间 s")
    private int seatTime;
    @FieldTypeAnnotation(desc = "最高称号阶段 (-1表示没称号)")
    private byte decorationClass = -1;
    @FieldTypeAnnotation(desc = "称号过期时间 (s)")
    private int decorationOverTime = -1;
    @FieldTypeAnnotation(desc = "上次位置变动时间(s)")
    private int changeTime;

    public long getGroupId() {
        return groupId;
    }
    public void setGroupId(long groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public int getPosIndex() {
        return posIndex;
    }
    public void setPosIndex(int posIndex) {
        if (this.posIndex != posIndex) {
            this.posIndex = posIndex;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getSeatTime() {
        return seatTime;
    }
    public void setSeatTime(int seatTime) {
        if (this.seatTime != seatTime) {
            this.seatTime = seatTime;
            setOp(DataStatus.Update);
        }
    }

    public byte getDecorationClass() {
        return decorationClass;
    }
    public void setDecorationClass(byte decorationClass) {
        if (this.decorationClass != decorationClass) {
            this.decorationClass = decorationClass;
            setOp(DataStatus.Update);
        }
    }

    public int getDecorationOverTime() {
        return decorationOverTime;
    }
    public void setDecorationOverTime(int decorationOverTime) {
        if (this.decorationOverTime != decorationOverTime) {
            this.decorationOverTime = decorationOverTime;
            setOp(DataStatus.Update);
        }
    }

    public int getChangeTime() {
        return changeTime;
    }
    public void setChangeTime(int changeTime) {
        if (this.changeTime != changeTime) {
            this.changeTime = changeTime;
            setOp(DataStatus.Update);
        }
    }
}
